﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cemetery_List.Aspx.cs" Inherits="Users_Cemetery_List" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <asp:PlaceHolder Visible="false" runat="server">

        <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

    </asp:PlaceHolder>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />

    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>

    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>

    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>

    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>

    <script src="../Script/ConvertTime.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $.formValidator.initConfig({ alertmessage: false, formid: "memorial_Form", onerror: function(msg) { alert(msg) } });
            $("#Txt_Name").formValidator({ onshow: "请输入陵园名称", onfocus: "陵园名称不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "两边不能有空符号" }, onerror: "陵园名称长度必须在1-30位,请确认" });



        });
      
    </script>

    <script src="../Script/province.aspx"></script>

    <script src="../Script/popup.js"></script>

</head>
<body>
    <%=this.UI_TopControl()%>
    <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_UsersDhtList() %>
            </div>
            <div class="Member_Right">
                <form runat="server" id="memorial_Form">
                <div class="Member_right_dht">
                    <img src="../Images/class_hy.jpg" /></div>
                <div class="Member_right_CntLIst">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                        <tr>
                            <td height="25" align="center" bgcolor="#E3DEBE" class="title">
                                <strong>陵园列表</strong>
                            </td>
                        </tr>
                        <tr align="center" class="tdbg">
                            <td>
                                <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
                                    <tr>
                                        <td width="17%" align="center">
                                            <strong>陵园编号</strong>
                                        </td>
                                        <td width="29%" align="center">
                                            <strong>陵园名称</strong>
                                        </td>
                                        <td width="17%" align="center">
                                            <strong>创建时间</strong>
                                        </td>
                                        <td width="17%" align="center">
                                            <strong>背景音乐</strong>
                                        </td>
                                        <td width="20%" align="center">
                                            <strong>操作</strong>
                                        </td>
                                    </tr>
                                    <asp:Repeater ID="Repeater1" runat="server" 
                                        onitemcommand="Repeater1_ItemCommand">
                                        <ItemTemplate>
                                            <tr style="padding: 2px;">
                                                <td align="center" class="Black_A" >
                                                    &nbsp;<a target="_blank" class="Black_A" href="<%#Url_DomainChange(Eval("Numid").ToString(), AspNetCs.Enumerations.Channel_Enum.Channel_Type.cemetery.ToString())%>"><%#Eval("Numid") %></a>
                                                </td>
                                                <td align="center">
                                                    &nbsp;<%#Eval("Names") %>
                                                </td>
                                                <td align="center">
                                                    &nbsp;<%#Eval("Addtime") %>
                                                </td>
                                                <td align="center">
                                                    &nbsp;
                                                </td>
                                                <td align="center" class="Black_A" >
                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("id")%>' CommandName="CreateHtml" >重新生成</asp:LinkButton>
                                                    &nbsp;&nbsp;<a href="<%#""+configInfo.InstallDir+"skins/cemetery/default.aspx?id="+Eval("id")+"" %>" >管&nbsp;&nbsp;理</a>&nbsp;&nbsp;
                                                    <asp:LinkButton ID="Button2" runat="server" CommandArgument='<%#Eval("id")%>' CommandName="delinfo" OnClientClick="return confirm('是否真的删除此陵园?一旦删除将无法恢复');" >删&nbsp;&nbsp;除</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <tr>
                                        <td colspan="6" align="right">
                                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                                                EnableUrlRewriting="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                                OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="DropDownList" PrevPageText="上一页"
                                                ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                                            </webdiyer:AspNetPager>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
                </form>
            </div>
        </div>
        <br />
    </div>
    <%=UI_boot() %>
</body>
</html>
